<#assign className = table.className>
<#assign classNameLower = className?uncap_first>
<#assign classNameAllLower = className?lower_case>
<#assign hasParentSearchField = 'false'>
<#if adminSearchField?? && adminSearchField != "">
    <#list adminSearchField?split(",") as field>
        <#if field?contains("_") && field?contains(".")>
            <#assign hasParentSearchField = 'true'>
            <#break>
        </#if>
    </#list>
</#if>
package ${basePackage}.${moduleName}.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import ${basePackage}.${moduleName}.model.entity.${className};
import ${basePackage}.${moduleName}.model.response.${className}VO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * ${table.remarks}-Dao
 *
 * @author
 */
@Mapper
public interface ${className}Dao extends BaseMapper<${className}> {
    <#if hasParentSearchField = 'true'>

    /**
     * 列表
     *
     * @param params
     *
     * @return
     */
    List<${className}> list(@Param("params") Map<String, Object> params);

    /**
     * 分页列表
     *
     * @param page
     * @param params
     *
     * @return
     */
    List<${className}> list(@Param("page") Page<${className}> page, @Param("params") Map<String, Object> params);
    </#if>

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<${className}VO> list4app(@Param("params") Map<String, Object> params);

    /**
     * 分页列表-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    List<${className}VO> list4app(@Param("page") Page<${className}VO> page, @Param("params") Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    ${className}VO get4appById(Long id);
}
